<?php

namespace Home\Controller;

/**
 * 房型与价格设置相关页面视图
 *
 * @author AmosZhong
 * @date 2016-05-03
 */
class RoomSettingPageController extends ParentController {
    
    protected function _initialize() {
        parent::_initialize();
        $hotelBookLogic = A('Common/HotelBook', 'Logic');
        $hotelDetail = $hotelBookLogic->getInfo($this->hotelId);
        $this->assign('logoimageurl', empty($hotelDetail['logoimageurl'])?'/Public/uclbrt/image/meizhu.png':$hotelDetail['logoimageurl']);

        // 获取系统货币
        $currencyLogic = A('Common/Currency', 'Logic');
        $currencyData = $currencyLogic->getBpCurrency();
        $this->assign('currencyInfo', $currencyData);
    }
}